package cate.game.role.farm.udgpalace.msg;

import cate.common.util.GameResult;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBUdgPalace;
import easy.java.dev.note.NoteField;

import java.util.List;

@ClientMsg(title = "地宫探险创建队伍的请求")
public class UdgPalaceCreateTeamReq implements MsgInput {
    @NoteField("食灵的uid")
    public List<String> heroUids;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        GameResult<Void> r = cc.getRole().getFarm().udgPalace.setTeam(heroUids);
        game.notice.message(cc.getRole(), r, true);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBUdgPalace.CREATE_TEAM_REQ;
    }
}
